package com.xmy.cultivate.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.xmy.cultivate.entity.Grade;
import com.xmy.cultivate.entity.Student;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xmy.cultivate.entity.views.GradeStudent;
import com.xmy.cultivate.entity.views.SelectStudent;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.sql.Struct;
import java.util.List;

/**
 * <p>
 * 学生表 服务类
 * </p>
 *
 * @author min
 * @since 2022-07-26
 */
public interface IStudentService extends IService<Student> {

    public abstract IPage<Student> findAll(IPage<?> page, Wrapper wrapper);

    public abstract IPage<Student> rosterList(IPage<?> page, Wrapper wrapper);

    public abstract BigDecimal arrearage(Wrapper wrapper);

    public abstract IPage<Student> signUpStu(IPage<?> page,Wrapper wrapper);

    public abstract Student findOne(Long id);

    public abstract Boolean saveTo(Student student);

    public abstract boolean updateTo(Student student);

    public abstract IPage<Student> getStudentForGradeId(Long gradeId,String name,Integer pageNum,Integer pageSize);

    public abstract IPage<SelectStudent> getStudentForShift(IPage<?> page, Wrapper wrapper, Grade grade);

    public abstract boolean addGradeStudent(String gradeId,String[] studentList);
}
